package com.toutiao.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.toutiao.dao.model.News;
import com.toutiao.dao.model.NewsExample;

public interface NewsMapper {
	int countByExample(NewsExample example);

	int deleteByExample(NewsExample example);

	int deleteByPrimaryKey(Integer id);

	int insert(News record);

	int insertSelective(News record);

	List<News> selectByExample(NewsExample example);

	List<News> selectByExampleWithBLOBs(NewsExample example);

	News selectByPrimaryKey(Integer id);

	int updateByExampleSelective(@Param("record") News record, @Param("example") NewsExample example);

	int updateByExampleWithBLOBs(@Param("record") News record, @Param("example") NewsExample example);

	int updateByExample(@Param("record") News record, @Param("example") NewsExample example);

	int updateByPrimaryKeySelective(News record);

	int updateByPrimaryKeyWithBLOBs(News record);

	int updateByPrimaryKey(News record);

}
